package com.recharge.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Reagan
 * @since 2020-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "business_goods_merchant", resultMap = "BaseResultMap")
public class GoodsMerchantEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("merchant_id")
    private String merchantId;

//    @TableField(exist = false)
    private String merchantName;

    @TableField("goods_id")
    private String goodsId;

//    @TableField(exist = false)
    private String groupId;

//    @TableField(exist = false)
    private String groupName;

//    @TableField(exist = false)
    private String goodsName;

    private Long denomination;

    @TableField("discount")
    private Float discount;

    @TableField("after_discount")
    private Float afterDiscount;

    private Integer lossType;

    @TableField("create_date")
    private Date createDate;

    @TableField("modifi_date")
    private Date modifiDate;

    @TableField("creator")
    private String creator;

    @TableField("modifier")
    private String modifier;

    /**
     * 1.正常 2.维护
     */
    @TableField("status")
    private Integer status;

    /**
     * 1.正常 2.维护
     */
    @TableField(exist = false)
    private Integer goodsStatus;

    /**
     * -1 删除 1 有效
     */
    @TableField("is_delete")
    private Integer isDelete;


}
